import React from 'react'
import Myevents from "../utils/events"
import Appground from './appground'
function Appdau() {
  let fn = ()=>{
    Myevents.emit("zhao","我是姐姐组件的数据") // 第一个参数是需要接收参数的组件xuyao0监听的名字，第二个
    // 参数式要传递得数据
  }
  return (
    <div>appdau
        <button onClick={fn}>我要给兄弟组件传参</button>
        <Appground></Appground>
    </div>
  )
}

export default Appdau